package com.ctl.controller;

import com.ctl.dto.FeedAllDTO;
import com.ctl.service.FeedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@RestController
public class FeedController {
    @Autowired
    private FeedService service;
    @GetMapping("/feeds")   //获取动态列表
    public List<FeedAllDTO> getFeedsPage(
                                         @RequestParam(defaultValue = "1")Integer page,
                                         @RequestParam(defaultValue = "1")Integer per_page){
        return service.getFeedsPage(page,per_page);
    }


}
